package com.gary.springcloud.lb;

import com.netflix.loadbalancer.Server;
import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author pengrui
 * @date 2021/1/9 - 9:30
 */
public interface LoadBlancer {

    /**
     * 获取服务
     * @param servers
     * @return
     */
    ServiceInstance getService(List<ServiceInstance> servers);
}
